import request from "@/utils/request"

export class BoomService {
  static list = (params: any) => {
    return request.get("user/admin/boom/", { params })
  }

  static delete = (ids: number[]) => {
    return request.delete("user/admin/boom/", { data: { ids } })
  }

  static update = (data: any) => {
    return request.put("user/admin/boom/", data)
  }

  static booms = () => {
    return request.get("user/boom/")
  }

  static news = (params: any) => {
    return request.get("user/news/", { params })
  }

  static add = (data: any) => {
    return request.post("user/admin/boom/", data)
  }

}